﻿namespace B.MESUI.Login.A_Public.Constants
{
    /// <summary>
    /// API端点常量
    /// </summary>
    public static class ApiEndpoints
    {
        // ********************************************************************************************
        // 文件：ApiEndpoints.cs
        // 说明：API端点常量定义，集中管理所有后端接口路径，便于维护和调用。
        // ********************************************************************************************

        // 编码生成相关端点
        public static class CodeGen
        {
            /// <summary>
            /// 生成编码接口
            /// </summary>
            public const string Generate = "api/Code/generate";
            /// <summary>
            /// 创建编码规则接口
            /// </summary>
            public const string CreateRule = "api/Code/rule";
            /// <summary>
            /// 获取所有编码规则接口
            /// </summary>
            public const string GetAllRules = "api/Code/rules";
            /// <summary>
            /// 获取编码规则详情接口
            /// </summary>
            public const string GetRuleDetail = "api/Code/rule/detail";
            /// <summary>
            /// 预览编码接口
            /// </summary>
            public const string Preview = "api/Code/preview";
        }

        // 工单管理相关端点
        public static class WorkOrder
        {
            /// <summary>
            /// 添加工单接口
            /// </summary>
            public const string AddWorkOrder = "api/WorkOrder/AddWorkOrder";
            /// <summary>
            /// 获取工单列表接口
            /// </summary>
            public const string GetWorkOrderList = "api/WorkOrder/GetWorkOrderList";
            /// <summary>
            /// 删除工单接口
            /// </summary>
            public const string DeleteWorkOrder = "api/WorkOrder/DeleteWorkOrder";
            /// <summary>
            /// 获取工单实体接口
            /// </summary>
            public const string GetWorkOrderEntity = "api/WorkOrder/GetWorkOrderEntity";
        }

        // 产品锁定相关端点
        public static class ProductLock
        {
            /// <summary>
            /// 添加产品锁定接口
            /// </summary>
            public const string AddProductLock = "api/ProductLock/AddProductLock";
            /// <summary>
            /// 获取产品锁定列表接口
            /// </summary>
            public const string GetProductLockList = "api/ProductLock/GetProductLockList";
            /// <summary>
            /// 解锁产品接口
            /// </summary>
            public const string UnProductLock = "api/ProductLock/UnProductLock";
            /// <summary>
            /// 获取工单实体接口（产品锁定）
            /// </summary>
            public const string GetWorkOrderEntity = "api/ProductLock/GetWorkOrderEntity";
        }

        // 产线管理相关端点
        public static class ProjectLine
        {
            /// <summary>
            /// 获取产线信息接口
            /// </summary>
            public const string GetProductionLine = "api/ProjectLine/GetProductionLine";
        }
    }
}